﻿#region Using
#if NUNIT
using System;
using System.Data;
using System.IO;
using NMock2;
using NUnit.Framework;
using TestClass = NUnit.Framework.TestFixtureAttribute;
using TestMethod = NUnit.Framework.TestAttribute;
using TestInitialize = NUnit.Framework.SetUpAttribute;
using TestCleanup = NUnit.Framework.TearDownAttribute;
using TestContext = System.Object;
#else
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Category = Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute;
#endif
#endregion

namespace NMock3.Tests
{
	[TestClass]
	public class StubTests
	{
		[Ignore]
		[TestMethod]
		public void StubTest1()
		{
			MockFactory factory = new MockFactory();
			Stub<DataSet> stub = factory.CreateStub<DataSet>();

			stub.Out.GetProperty(d => d.DataSetName).WillReturn("DS1");

			string name = stub.MockObject.DataSetName;

			Assert.AreEqual("DS1", name);


		}
	}
}
